package com.rc.saas.tenant.vo.order;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.rc.saas.tenant.common.utils.StringUtil;

import java.math.BigDecimal;

/**
 * @author frog
 * @date 2019/11/19
 */
public class OrderDetailPrintVo {
    @ExcelProperty("桩群名")
    private String stationName;
    @ExcelProperty("桩编号")
    private String pileNo;
    @ExcelProperty("桩厂家")
    private String brandName;
    @ExcelProperty("订单号")
    private String orderNum;
    @ExcelProperty("会员名")
    private String nickname;
    @ExcelProperty("手机号")
    private String mobile;
    @ExcelProperty("开始充电时间")
    private String beginTime;
    @ExcelProperty("结束充电时间")
    private String endTime;
    @ExcelProperty("电量(度)")
    private BigDecimal power;
    @ExcelProperty("基本电费")
    private BigDecimal elecAmount;
    @ExcelProperty("服务费")
    private BigDecimal serviceAmount;
    @ExcelProperty("总价格(元)")
    private BigDecimal chargeAmount;
    @ExcelProperty("电费单价(元/度)")
    private BigDecimal elecPrice;
    @ExcelProperty("服务费单价(元/度)")
    private BigDecimal servicePrice;
    @ExcelProperty("时间段")
    private String times;

    @ExcelIgnore
    private String hlhtTenantCode;
    @ExcelIgnore
    private String hlhtNickname;
    @ExcelIgnore
    private String hlhtMobile;
    @ExcelIgnore
    private String tenantCode;
    @ExcelIgnore
    private String userTenantCode;

    public String getNickname() {
        if (StringUtil.isNotBlank(hlhtTenantCode)) {
            if (userTenantCode.equals(tenantCode)) {
                return nickname;
            } else {
                return hlhtNickname;
            }
        }
        return nickname;
    }

    public String getMobile() {
        if (StringUtil.isNotBlank(hlhtTenantCode)) {
            if (userTenantCode.equals(tenantCode)) {
                return mobile;
            } else {
                return hlhtMobile;
            }
        }
        return mobile;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public String getPileNo() {
        return pileNo;
    }

    public void setPileNo(String pileNo) {
        this.pileNo = pileNo;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public BigDecimal getPower() {
        return power;
    }

    public void setPower(BigDecimal power) {
        this.power = power;
    }

    public BigDecimal getElecAmount() {
        return elecAmount;
    }

    public void setElecAmount(BigDecimal elecAmount) {
        this.elecAmount = elecAmount;
    }

    public BigDecimal getServiceAmount() {
        return serviceAmount;
    }

    public void setServiceAmount(BigDecimal serviceAmount) {
        this.serviceAmount = serviceAmount;
    }

    public BigDecimal getChargeAmount() {
        return chargeAmount;
    }

    public void setChargeAmount(BigDecimal chargeAmount) {
        this.chargeAmount = chargeAmount;
    }

    public BigDecimal getElecPrice() {
        return elecPrice;
    }

    public void setElecPrice(BigDecimal elecPrice) {
        this.elecPrice = elecPrice;
    }

    public BigDecimal getServicePrice() {
        return servicePrice;
    }

    public void setServicePrice(BigDecimal servicePrice) {
        this.servicePrice = servicePrice;
    }

    public String getTimes() {
        return times;
    }

    public void setTimes(String times) {
        this.times = times;
    }

    public String getHlhtTenantCode() {
        return hlhtTenantCode;
    }

    public void setHlhtTenantCode(String hlhtTenantCode) {
        this.hlhtTenantCode = hlhtTenantCode;
    }

    public String getHlhtNickname() {
        return hlhtNickname;
    }

    public void setHlhtNickname(String hlhtNickname) {
        this.hlhtNickname = hlhtNickname;
    }

    public String getHlhtMobile() {
        return hlhtMobile;
    }

    public void setHlhtMobile(String hlhtMobile) {
        this.hlhtMobile = hlhtMobile;
    }

    public String getTenantCode() {
        return tenantCode;
    }

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public String getUserTenantCode() {
        return userTenantCode;
    }

    public void setUserTenantCode(String userTenantCode) {
        this.userTenantCode = userTenantCode;
    }
}
